package com.ghosthigh.simpleaccount.server.url;

import javax.servlet.http.HttpServletRequest;

import com.ghosthigh.simpleaccount.server.annotations.Annotations;
import com.google.inject.AbstractModule;
import com.google.inject.Provides;

public class UrlModule extends AbstractModule {

  @Override
  protected void configure() {
  }

  @Provides
  @Annotations.StaticHtml
  String provideStaticHtmlPath(HttpServletRequest req, Urls urls) {
    return urls.extractStaticHtmlFromPath(req.getRequestURI());
  }

}
